import React from 'react';
import { Tabbar } from 'react-vant';
import { AppsO, Contact } from '@react-vant/icons';
import { history } from 'umi';
export default function Index(props: any) {
  return (
    <div>
      <div>{props.children}</div>
      <div>
        <Tabbar activeColor="#2aba66" inactiveColor="#000">
          <Tabbar.Item
            icon={<AppsO />}
            onClick={() => history.push('/qishou/jiedan')}
          >
            订单
          </Tabbar.Item>
          <Tabbar.Item
            icon={<Contact />}
            onClick={() => history.push('/qishou/wo')}
          >
            骑手
          </Tabbar.Item>
        </Tabbar>
      </div>
    </div>
  );
}
